#ifndef SINGLECLASS_H
#define SINGLECLASS_H
#include <iostream>

class SingleClass
{
public:
    static SingleClass& getSingle(){
        static SingleClass single;
        return single;
        std::cout << "创建一个单例实例" << std::endl;
    }
    SingleClass(const SingleClass& s) = delete ;
    SingleClass operator=(const SingleClass& s) = delete ;
private:
    SingleClass(){}
};

#endif // SINGLECLASS_H
